public class DataBase
{
    ModifyBase m_Modify = new ModifyBase();
    public void DoInit()
    {
        GameMain.Instance().AddDataBase(this);
        OnInit();
    }

    public virtual void OnInit()
    {

    }

    // Start is called before the first frame update
    public void Modify()
    {
        m_Modify.MakeModify();
    }
    public virtual void OnPushModify()
    {

    }
    public void DoUpdate()
    {
        if (m_Modify.IsModify)
        {
            OnPushModify();
            m_Modify.ClearModify();
        }
    }
}
